import { defineStore } from "pinia";
import {ref} from "vue"

export const useCustomerStore = defineStore('counter', () => {
    // 客户列表
    const customerList = ref([])

    // 添加到列表
    const addCustomer = (res) => {
        customerList.value.push(res)
    }
    
    // 以对象的形式返回
    return {
        customerList,
        addCustomer
    }
})